/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.trocket.v20230308.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DoHealthCheckOnMigratingTopicResponse extends AbstractModel {

    /**
    * Whether to Pass		
    */
    @SerializedName("Passed")
    @Expose
    private Boolean Passed;

    /**
    * Error information returned by health check.
NotChecked indicates the check is not executed. 
Unknown error. 
TopicNotImported. specifies the topic is not imported.
TopicNotExistsInSourceCluster specifies the topic does not exist in the source cluster. 
Topic does not exist in the target cluster. 
ConsumerConnectedOnTarget specifies whether consumer connections exist on the target cluster. 
SourceTopicHasNewMessagesIn5Minutes indicates that new messages were written to the source cluster topic in the last 5 minutes. 
TargetTopicHasNewMessagesIn5Minutes specifies whether new messages were written to the target cluster topic in the last 5 minutes. 
SourceTopicHasNoMessagesIn5Minutes specifies no new messages were written to the source cluster in the last 5 minutes. 
TargetTopicHasNoMessagesIn5Minutes specifies that no new messages were written to the source cluster in the last 5 minutes. 
Inconsistent number of subscription groups. 
SourceTopicHasUnconsumedMessages specifies that unconsumed messages exist in the source cluster topic.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("Reason")
    @Expose
    private String Reason;

    /**
    * List of error information returned by health check.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("ReasonList")
    @Expose
    private String [] ReasonList;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Whether to Pass		 
     * @return Passed Whether to Pass		
     */
    public Boolean getPassed() {
        return this.Passed;
    }

    /**
     * Set Whether to Pass		
     * @param Passed Whether to Pass		
     */
    public void setPassed(Boolean Passed) {
        this.Passed = Passed;
    }

    /**
     * Get Error information returned by health check.
NotChecked indicates the check is not executed. 
Unknown error. 
TopicNotImported. specifies the topic is not imported.
TopicNotExistsInSourceCluster specifies the topic does not exist in the source cluster. 
Topic does not exist in the target cluster. 
ConsumerConnectedOnTarget specifies whether consumer connections exist on the target cluster. 
SourceTopicHasNewMessagesIn5Minutes indicates that new messages were written to the source cluster topic in the last 5 minutes. 
TargetTopicHasNewMessagesIn5Minutes specifies whether new messages were written to the target cluster topic in the last 5 minutes. 
SourceTopicHasNoMessagesIn5Minutes specifies no new messages were written to the source cluster in the last 5 minutes. 
TargetTopicHasNoMessagesIn5Minutes specifies that no new messages were written to the source cluster in the last 5 minutes. 
Inconsistent number of subscription groups. 
SourceTopicHasUnconsumedMessages specifies that unconsumed messages exist in the source cluster topic.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return Reason Error information returned by health check.
NotChecked indicates the check is not executed. 
Unknown error. 
TopicNotImported. specifies the topic is not imported.
TopicNotExistsInSourceCluster specifies the topic does not exist in the source cluster. 
Topic does not exist in the target cluster. 
ConsumerConnectedOnTarget specifies whether consumer connections exist on the target cluster. 
SourceTopicHasNewMessagesIn5Minutes indicates that new messages were written to the source cluster topic in the last 5 minutes. 
TargetTopicHasNewMessagesIn5Minutes specifies whether new messages were written to the target cluster topic in the last 5 minutes. 
SourceTopicHasNoMessagesIn5Minutes specifies no new messages were written to the source cluster in the last 5 minutes. 
TargetTopicHasNoMessagesIn5Minutes specifies that no new messages were written to the source cluster in the last 5 minutes. 
Inconsistent number of subscription groups. 
SourceTopicHasUnconsumedMessages specifies that unconsumed messages exist in the source cluster topic.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getReason() {
        return this.Reason;
    }

    /**
     * Set Error information returned by health check.
NotChecked indicates the check is not executed. 
Unknown error. 
TopicNotImported. specifies the topic is not imported.
TopicNotExistsInSourceCluster specifies the topic does not exist in the source cluster. 
Topic does not exist in the target cluster. 
ConsumerConnectedOnTarget specifies whether consumer connections exist on the target cluster. 
SourceTopicHasNewMessagesIn5Minutes indicates that new messages were written to the source cluster topic in the last 5 minutes. 
TargetTopicHasNewMessagesIn5Minutes specifies whether new messages were written to the target cluster topic in the last 5 minutes. 
SourceTopicHasNoMessagesIn5Minutes specifies no new messages were written to the source cluster in the last 5 minutes. 
TargetTopicHasNoMessagesIn5Minutes specifies that no new messages were written to the source cluster in the last 5 minutes. 
Inconsistent number of subscription groups. 
SourceTopicHasUnconsumedMessages specifies that unconsumed messages exist in the source cluster topic.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param Reason Error information returned by health check.
NotChecked indicates the check is not executed. 
Unknown error. 
TopicNotImported. specifies the topic is not imported.
TopicNotExistsInSourceCluster specifies the topic does not exist in the source cluster. 
Topic does not exist in the target cluster. 
ConsumerConnectedOnTarget specifies whether consumer connections exist on the target cluster. 
SourceTopicHasNewMessagesIn5Minutes indicates that new messages were written to the source cluster topic in the last 5 minutes. 
TargetTopicHasNewMessagesIn5Minutes specifies whether new messages were written to the target cluster topic in the last 5 minutes. 
SourceTopicHasNoMessagesIn5Minutes specifies no new messages were written to the source cluster in the last 5 minutes. 
TargetTopicHasNoMessagesIn5Minutes specifies that no new messages were written to the source cluster in the last 5 minutes. 
Inconsistent number of subscription groups. 
SourceTopicHasUnconsumedMessages specifies that unconsumed messages exist in the source cluster topic.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setReason(String Reason) {
        this.Reason = Reason;
    }

    /**
     * Get List of error information returned by health check.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return ReasonList List of error information returned by health check.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String [] getReasonList() {
        return this.ReasonList;
    }

    /**
     * Set List of error information returned by health check.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param ReasonList List of error information returned by health check.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setReasonList(String [] ReasonList) {
        this.ReasonList = ReasonList;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DoHealthCheckOnMigratingTopicResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DoHealthCheckOnMigratingTopicResponse(DoHealthCheckOnMigratingTopicResponse source) {
        if (source.Passed != null) {
            this.Passed = new Boolean(source.Passed);
        }
        if (source.Reason != null) {
            this.Reason = new String(source.Reason);
        }
        if (source.ReasonList != null) {
            this.ReasonList = new String[source.ReasonList.length];
            for (int i = 0; i < source.ReasonList.length; i++) {
                this.ReasonList[i] = new String(source.ReasonList[i]);
            }
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "Passed", this.Passed);
        this.setParamSimple(map, prefix + "Reason", this.Reason);
        this.setParamArraySimple(map, prefix + "ReasonList.", this.ReasonList);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

